{% extends '__admin__.html' %}
{% block page_title %}
{{ g.sitename }}- list of players
{% endblock %}
{% block admincontent %}
<div>
    <table class="table table-hover">
        <thead>
            <tr>
                <td>姓名</td>
                <td>昵称</td>
                <td>身价</td>
                <td>todo</td>
         
            </tr>
        </thead>
        <tbody>
    {% for player in players %}
    <tr>
        <td>{{ player['name']}}</td>
        <td>{{ player['display_name']}}</td>
        <td>{{ player['game_value']}}</td>
        <td><a href="/player/{{ player['_id']}}" target="_blank"><i class="fa fa-eye icon "></i>view</a>
          <a href="{{url_for('backend.postplayer', id=player['_id'])}}"><i class="fa fa-pencil icon"></i>post</a>
        <a href="{{ url_for('backend.delete_player', id=player['_id']) }}" target='_self' onclick="javascript:return confirm('are you sure?')">
          <i class="fa fa-trash-o icon"></i>remove</a>
        </td>
    </tr>
    </tbody>
    {% endfor %}
    </table>
</div>

{% endblock %}
